package com.qf.mapper;

import com.qf.pojo.Emp;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author lixu
 */
public interface EmpMapper {

    public List<Emp> findAll();

    @Insert("insert into emp (name,age) values (#{name},#{age})")
    void addEmp(Emp emp);
    @Update("update emp set name = #{name},age =#{age} where emp_id = #{id}")
    void update(Emp emp);
}
